#pragma once
#include "GameObject.h"
#include "Playfield.h"
#include "Player.h"
#include <string>

class ScoreCounter :
	public GameObject
{
public:
	ScoreCounter(Playfield &playfield);
	~ScoreCounter(void);

	virtual void update(const double time);
	virtual void getReadyForDraw();

	void scoredPoint(PlayerPosition pos);
	void reset();

private:
	void buildString();

	Playfield playfield;
	int leftPlayersPoints, rightPlayersPoints;
	std::string scoreString;
};
